home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
amos
/
ldosv25d.lha
/
ldos_demo
/
examples
/
ldos
/
freq.AMOS
/
freq.amosSourceCode
Wrap
AMOS Source Code
|
1992-03-05
|
1KB
|
33 lines
' You'll need the "req.library" in LIBS: on your BOOT-disk!
' Also, this library must be present when this extension is BOOTED,
' since it is only loded and opened once, during startup.
'
Extension_10_01EE "sys:"
Extension_10_049E 50,20 : Rem Pos req at X=50, Y=20
Extension_10_04B0 15,40,12 : Rem Dev-width=15, File-width=40, height=12 lines
'
' Set the filerequesters current directory.
' This directory does NOT change the current directory of AMOS or
' your compiled program.
Screen Open 1,640,256,8,Hires
Paper 0 : Clw
Pen 5
Print "Click cancel to stop!"
Wait 50
Repeat
Amos To Back
' We want to see the requester won't we ?
A$= Extension_10_01A0("Choose a file and a Dir!",$2+$4+$10+$40+$1000)
' See docs about flags. Cache is turned on!
Amos To Front
Print "Path+Name : ";A$
' This is the path AND filename
' This will be empty if Cancel was clicked. Freq File and Dir
' will STILL contain the last choosen names.
Print " Name : "; Extension_10_0202
' This is the filname, WITHOUT the path
Print "Directory : "; Extension_10_0216
' This is the path WITHOUT the filename
Centre "--- Press A Key ---" : Print
Wait Key
Until A$=""